#include<bits/stdc++.h>

using namespace std;

int main()
{
	int year1 = 2000,month1 = 1,day1 = 1;
	int year2 = 2000,month2 = 5,day2 = 4;
	int cot = 0;
	for(int year = year1;year <= year2;year++)
	{
		for(int month = month1;month <= month2;month++)
		{
			if(year == year2 && month== month2)
			for(int day = 1;day <= day2;day++)
			{
				cot++;
			}
			else{
				if(month == 1 || month == 3||month == 5||month == 7||month == 8||month == 10
				||month == 12 ) 
				{
					cot +=31;
				}
				else if(month == 2)
				{
					if((year % 4 == 0 && year%100 != 0) || year % 400 ==0)
					{
						cot +=29;
						
					}
					else cot +=28;
				}
				else cot +=30;
			}
		}
	}
	cout<<cot<<endl;
	
}

